package com.szeastroc.core.mapper.system;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.szeastroc.common.query.BaseQuery;
import com.szeastroc.core.base.mapper.BaseMapper;
import com.szeastroc.core.bean.system.SystemUser;


public interface SystemUserMapper extends BaseMapper<SystemUser>{

    @Select("select * from t_system_user where username = #{userName}")
    public SystemUser selectByUserName(@Param("userName") String userName);

    public List<SystemUser> selectUsers(BaseQuery query);
    
    @Select("select * from t_system_user where username = #{userName} and password = #{password}")
    public SystemUser selectByNameAndPassword(@Param("userName")String name,@Param("password")String password);
}
